package com.ldzy.service.impl;

import com.ldzy.dao.ClientMapper;
import com.ldzy.pojo.Client;
import com.ldzy.service.ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientServiceImpl implements ClientService {
    @Autowired
    ClientMapper clientMapper;
    @Override
    public void add(Client client) {
        clientMapper.add(client);
    }

    @Override
    public List<Client> getAll() {
        return clientMapper.getAll();
    }
}
